package hrx.dao;

import hrx.entity.Admin;
import hrx.entity.Task;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface AdminDao extends JpaRepository<Admin,Integer>, JpaSpecificationExecutor<Task> {
    Optional<Admin> findByName(String name);
}
